package com.coolwen.spring.aop.xml;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author CoolWen
 * @version 2020-03-26 9:08
 */
public class TestXml {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("beans.xml");
        ICalFibonacci icf = (ICalFibonacci) ctx.getBean("calFibonacci");
        icf.calFibonacciByLoop(40);
        icf.calFibonacciByRecusion(40);
    }
}
